using Joy.Erp.BasicArchives.Core;
using Joy.Erp.BasicArchives.ItemMasters;
using System;
using Volo.Abp.ObjectExtending;

namespace Joy.Erp.BasicArchives.Procurements
{
    public class PurchaseOrderLineCreateOrUpdateDto : ExtensibleObject, IChildDto
    {
        /// <summary>
        /// 主键
        /// </summary>
        public Guid? Id { get; set; }

        /// <summary>
        /// 主单据
        /// </summary>
        public Guid? DocumentId { get; set; }
        /// <summary>
        /// 料品
        /// </summary>
        public Guid ItemMasterId { get; set; }
        /// <summary>
        /// 料品编号
        /// </summary>
        public string ItemCode { get; set; }
        /// <summary>
        /// 料品名称
        /// </summary>
        public string ItemName { get; set; }
        /// <summary>
        /// 规格型号
        /// </summary>
        public string ItemSpec { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public decimal Quantity { get; set; }
        /// <summary>
        /// 剩余数量
        /// </summary>
        public decimal RemainingQuantity { get; set; }
        /// <summary>
        /// 计量单位
        /// </summary>
        public Guid UnitId { get; set; }
        /// <summary>
        /// 单价
        /// </summary>
        public decimal UnitPrice { get; set; }
        /// <summary>
        /// 交期
        /// </summary>
        public DateTime? DeliveryDate { get; set; }
        /// <summary>
        /// 最新交期
        /// </summary>
        public DateTime? NewDeliveryDate { get; set; }
        /// <summary>
        /// 供应商交期
        /// </summary>
        public DateTime? SupplierDeliveryDate { get; set; }
        /// <summary>
        /// 要求到货日期
        /// </summary>
        public DateTime? RequireDeliveryDate { get; set; }
        /// <summary>
        /// 行号
        /// </summary>
        public int LineNo { get; set; }
        /// <summary>
        /// 来源类型
        /// </summary>
        public string SourceType { get; set; }
        /// <summary>
        /// 来源主键
        /// </summary>
        public string SourceKey { get; set; }
        /// <summary>
        /// 来源时间
        /// </summary>
        public DateTime? SourceCreatedOn { get; set; }
        /// <summary>
        /// 最后编辑时间
        /// </summary>
        public DateTime? LastModificationTime { get; set; }
        /// <summary>
        /// 最后编辑人
        /// </summary>
        public Guid? LastModifierId { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreationTime { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public Guid? CreatorId { get; set; }
    }
} 